//
//  GYXComposeTypeButton.swift
//  GYXWeibo
//
//  Created by Twisal on 2017/3/30.
//  Copyright © 2017年 Twisal. All rights reserved.
//

import UIKit

class GYXComposeTypeButton: UIControl {

    @IBOutlet weak var imageView: UIImageView!
    @IBOutlet weak var titleLabel: UILabel!

    var clsName: String?
    class func composeTypeButton(imageName: String, title: String) -> GYXComposeTypeButton {
        let nib = UINib(nibName: "GYXComposeTypeButton", bundle: nil)
        let btn = nib.instantiate(withOwner: nil, options: nil)[0] as! GYXComposeTypeButton
        btn.imageView.image = UIImage(named: imageName)
        btn.titleLabel.text = title
        return btn
    }
    
    

}
